<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/9/28 0028
 * Time: 15:36
 */

namespace Baiyang\Controllers;


use Baiyang\Http\ControllerBase;
use Baiyang\Http\Response;

class HomeController extends ControllerBase
{
    public function indexAction()
    {
        $this->redis->set('G852017092911203781299','G852017092911203781299');


        Response::finished(200,print_r(array_last($this->config->cache),true));
       // return response()->setJsonContent(['error'=>0,'data'=> $this->redis->get('G852017092911203781299'),'rand'=>$this->random->uuid()]);
    }
}